import i18n from "@/lang/index";
const searchConfig = {
  pageName: "",
  defSearch: true,
  formItems: [
    {
      type: "input",
      label: i18n.global.t("search.1"),
      prop: "user_id",
      attrs: {
        placeholder: i18n.global.t("search.1"),
        clearable: true,
        style: {
          width: "150px",
        },
      },
    },
    {
      type: "input",
      label: i18n.global.t("label.9"),
      prop: "username",
      attrs: {
        placeholder: i18n.global.t("label.9"),
        clearable: true,
        style: {
          width: "150px",
        },
      },
    },
    {
      type: "date-picker",
      label: i18n.global.t("search.13"),
      prop: "created_at",
      allowCrossMonth: false,
      attrs: {
        type: "datetimerange",
        "range-separator": "~",
        "start-placeholder": i18n.global.t("search.6"),
        "end-placeholder": i18n.global.t("search.7"),
        "value-format": "YYYY-MM-DD HH:mm:ss",
        style: {
          width: "360px",
        },
      },
    },
    {
      type: "custom",
      label: i18n.global.t('search.27'),
      prop: "type",
      attrs: {
        placeholder: i18n.global.t('status.3'),
        clearable: true,
        style: {
          width: "200px",
        },
      },
    },
  ],
};

export default searchConfig;
